package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class ShopCashApply implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 用户id       db_column: user_id
     */
	private String userId;
    /**
     * 用户名       db_column: user_name
     */
	private String userName;
    /**
     * 店铺id       db_column: shop_id
     */
	private String shopId;
    /**
     * 店铺名       db_column: shop_name
     */
	private String shopName;
    /**
     * 状态（0审核中，1通过，2不通过，3已转账）       db_column: status
     */
	private String status;
    /**
     * 备注       db_column: remark
     */
	private String remark;
    /**
     * 提现金额       db_column: amount
     */
	private Double amount;
    /**
     * 申请时间       db_column: create_date
     */
	private java.util.Date createDate;
    /**
     * 处理人id       db_column: operater_id
     */
	private String operaterId;
    /**
     * 处理人名称       db_column: operater_name
     */
	private String operaterName;
	//columns END

	public ShopCashApply(){
	}

	public ShopCashApply(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setUserId(String value) {
		this.userId = value;
	}

	public String getUserId() {
		return this.userId;
	}
	public void setUserName(String value) {
		this.userName = value;
	}

	public String getUserName() {
		return this.userName;
	}
	public void setShopId(String value) {
		this.shopId = value;
	}

	public String getShopId() {
		return this.shopId;
	}
	public void setShopName(String value) {
		this.shopName = value;
	}

	public String getShopName() {
		return this.shopName;
	}
	public void setStatus(String value) {
		this.status = value;
	}

	public String getStatus() {
		return this.status;
	}
	public void setRemark(String value) {
		this.remark = value;
	}

	public String getRemark() {
		return this.remark;
	}
	public void setAmount(Double value) {
		this.amount = value;
	}

	public Double getAmount() {
		return this.amount;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setOperaterId(String value) {
		this.operaterId = value;
	}

	public String getOperaterId() {
		return this.operaterId;
	}
	public void setOperaterName(String value) {
		this.operaterName = value;
	}

	public String getOperaterName() {
		return this.operaterName;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ShopCashApply == false) return false;
		if(this == obj) return true;
		ShopCashApply other = (ShopCashApply)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

